package com.yun.blog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yun.blog.bean.Picture;
import com.yun.blog.dao.PictureMapper;
import com.yun.blog.service.PictureService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * title        : AphorismServiceImpl
 * projectName  : dantouBlog-back
 * description  : pictureService 实现类
 * author       : simple
 * date         : 2022/11/26下午9:44
 */

@Service
public class PictureServiceImpl extends ServiceImpl<PictureMapper, Picture>
        implements PictureService {

    @Resource
    PictureMapper pictureMapper;

    @Override
    public Integer selectCountByAlbumId(Integer albumId) {
        return pictureMapper.selectCountByAlbumId(albumId);
    }

    @Override
    public int delByAlbumId(Integer albumId) {
        return pictureMapper.delByAlbumId(albumId);
    }
}
